package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.ArrayList;
import java.util.List;

/**
 * 部门文件对象 dept_file
 *
 * @author ruoyi
 * @date 2024-04-16
 */
public class DeptFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件id */
    private Long fileId;

    /** 父id */
    @Excel(name = "父id")
    private Long parentId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 文件类型：0文件夹，1用户文件 */
    @Excel(name = "文件类型：0文件夹，1用户文件")
    private String fileType;

    /** 文件大小（KB） */
    @Excel(name = "文件大小", readConverterExp = "K=B")
    private Long fileSize;

    /** 祖籍列表 */
    @Excel(name = "祖籍列表")
    private String ancestors;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String filePath;

    /** 上传地址 */
    @Excel(name = "上传地址")
    private String fileUrl;

    /** 是否放入回收站：0否，1是 */
    @Excel(name = "是否放入回收站：0否，1是")
    private String isRecycle;

    /** 删除标志（0删除 1存在） */
    private String delFlag;

    /** 上传标志 */
    private String uploadMark;

    /** 子文件 */
    private List<DeptFile> children = new ArrayList<DeptFile>();

    /** 创建人 */
    private String createName;

    private Long userId;

    private String downloadUserName;

    private List<DeptFile> deptFileList;

    private List<Long> fileIdList;

    public void setFileId(Long fileId)
    {
        this.fileId = fileId;
    }

    public Long getFileId()
    {
        return fileId;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getFileName()
    {
        return fileName;
    }
    public void setFileType(String fileType)
    {
        this.fileType = fileType;
    }

    public String getFileType()
    {
        return fileType;
    }
    public void setFileSize(Long fileSize)
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize()
    {
        return fileSize;
    }
    public void setAncestors(String ancestors)
    {
        this.ancestors = ancestors;
    }

    public String getAncestors()
    {
        return ancestors;
    }
    public void setFileUrl(String fileUrl)
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl()
    {
        return fileUrl;
    }
    public void setIsRecycle(String isRecycle)
    {
        this.isRecycle = isRecycle;
    }

    public String getIsRecycle()
    {
        return isRecycle;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public List<DeptFile> getChildren() {
        return children;
    }

    public void setChildren(List<DeptFile> children) {
        this.children = children;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getDownloadUserName() {
        return downloadUserName;
    }

    public void setDownloadUserName(String downloadUserName) {
        this.downloadUserName = downloadUserName;
    }

    public String getUploadMark() {
        return uploadMark;
    }

    public void setUploadMark(String uploadMark) {
        this.uploadMark = uploadMark;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public List<DeptFile> getDeptFileList() {
        return deptFileList;
    }

    public void setDeptFileList(List<DeptFile> deptFileList) {
        this.deptFileList = deptFileList;
    }

    public List<Long> getFileIdList() {
        return fileIdList;
    }

    public void setFileIdList(List<Long> fileIdList) {
        this.fileIdList = fileIdList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fileId", getFileId())
            .append("parentId", getParentId())
            .append("deptId", getDeptId())
            .append("fileName", getFileName())
            .append("fileType", getFileType())
            .append("fileSize", getFileSize())
            .append("ancestors", getAncestors())
            .append("fileUrl", getFileUrl())
            .append("isRecycle", getIsRecycle())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
